//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;
using OpenLS.Vml.Serialization;

namespace OpenLS.Vml.Presentation
{
    internal class TextData: ShapeElement
    {
        private string _id;

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read(VmlConstants.PowerpointNamespace +  "textdata"))
            {
                _id = c.GetString("id");   
            }

        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (var c = context.Write(VmlConstants.PowerpointNamespace + "textdata"))
            {
                c.SetString("id", _id);
            }
        }
    }
}